#include "listitem.h"
#include "ui_listitem.h"

ListItem::ListItem(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ListItem)
{
    ui->setupUi(this);

    // 显示图片
    //显示名字
    ui->labelName->setText("Hello World!");
    //显示进度
    ui->progressBar->setValue(89);

    ui->labelSpeed->setText("1 Mb/s");

    ui->labelCostTime->setText("00:57:16");
}

ListItem::~ListItem()
{
    delete ui;
}
